home *** CD-ROM | disk | FTP | other *** search
/ The X-Philes (2nd Revision) / The X-Philes Number 1 (1995).iso / xphiles / hp48hor1 / tree.doc < prev    next >
Text File  |  1995-03-31  |  2KB  |  49 lines

  1. (User.programs) 
  2. Item: 121 by _Guest_ at hpcvbbs.UUCP 
  3. Author: [Eric v. davis] 
  4.   Subj: Directory TREE for HP48SX 
  5.   Date: Sat Oct 06 1990 05:25  
  6.  
  7. TREE 
  8.  
  9. The following program will create a graphic that is the directory  
  10. tree of the 48.  That is, an indented list of all directories  in  
  11. the system: 
  12.  
  13.        HOME                                  [0] 
  14.          SYS                                 [1] 
  15.            ELECT                             [2] 
  16.              CIR1                            [3] 
  17.              CIR2                            [3] 
  18.            NMBR                              [2] 
  19.              BI                              [3] 
  20.              LSQ                             [3] 
  21.                THERM                         [4] 
  22.                  Y44006                      [5] 
  23.                  Y44203                      [5] 
  24.            FIN                               [2] 
  25.  
  26. And so on. 
  27.  
  28. When the graphic is displayed, the UP and DOWN arrows are used to  
  29. navigate the LCD.  Preceding the UP/DOWN keys with the blue arrow  
  30. moves  to  the top or the bottom of the list  respectively.   The  
  31. display  may  be printed by switching to the  normal  GRAPH  mode  
  32. (with  the orange arrow followed by the LEFT key), pressing  STO,  
  33. and then using PR1 to print the GROB in level 1. 
  34.  
  35. The  program is written in two sections.  Section  1  recursively  
  36. builds  a list-object of directories that are tagged  to  reflect  
  37. their system levels.  The bracketed numbers in the above  example  
  38. represent the directories' system levels; they are not displayed.   
  39. Section 2 of the program translates the list-object into a graph- 
  40. ic display. 
  41.  
  42. I would like to acknowledge that much of the inspiration for  the  
  43. graphic  section of this program was provided by  Kevin  Jessup's  
  44. EDIR program. 
  45.  
  46. Eric V. Davis 
  47. October 3, 1990 
  48.  
  49.